package book;

import system.Operation;

public class BookList {
    private final int bookListMax = 10 ;
    private Book[] books = new Book[bookListMax];
    private int usedSize ;

    public BookList() {
       this.books[0] = new Book("红楼梦","曹雪芹",10) ;
       this.books[1] = new Book("西游记","吴承恩",12) ;
       this.books[2] =  new Book("三国演义","罗贯中",13);
          this.usedSize = 3 ;
    }

    public void setBook(int pos , Book book){
        this.books[pos] = book ;
    }
    public Book getBook(int pos){
        return this.books[pos]  ;
    }
    public int getUsedSize(){
        return this.usedSize ;
    }
    public void setUsedSize(int usedSize){
        this.usedSize = usedSize ;
    }
    public int getBookListMax(){
        return this.bookListMax ;
    }


}
